<cpanel include="../../../config.php">

<?

/***************************************************************************
 *                                 leech_protect.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.0
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../../';
$page_title = "Leech Protect Directory";
include $root_path.'common.php';
include $root_path.'page_header.php';

$template->set_filenames(array(
	'body' => $root_path.$template_path.'files/manager/leech_protect.tpl')
);

$dir = <<<EOFpacman
<cpanel print="$FORM{'dir'}">
EOFpacman;

$s_hidden_vars = '<input type="hidden" name="dir" value="'.$dir.'">';

$status = <<<EOFpacman
<cpanel LeechProtect="status($FORM{'dir'})">
EOFpacman;

$numhits = <<<EOFpacman
<cpanel LeechProtect="setup($FORM{'dir'},numhits)">
EOFpacman;

$url = <<<EOFpacman
<cpanel LeechProtect="setup($FORM{'dir'},url)">
EOFpacman;

$email = <<<EOFpacman
<cpanel LeechProtect="setup($FORM{'dir'},email)">
EOFpacman;

$email_checked = <<<EOFpacman
<cpanel LeechProtect="setup($FORM{'dir'},email,checkbox)">
EOFpacman;

$disable_checked = <<<EOFpacman
<cpanel LeechProtect="setup($FORM{'dir'},kill,checkbox)">
EOFpacman;

$template->assign_vars(array(
	'DIRECTORY' => $dir,
	
	'S_SETUP_PROTECTION' => "leech_protect_setup_done.php",
	'S_DISABLE_PROTECTION' => "leech_protect_disable_done.php",
	'S_HIDDEN_VARS' => $s_hidden_vars,

	'U_PASSWORD_PROTECT' => "password_protect.php?dir=".$dir,

	'STATUS' => $status,
	'NUMHITS' => $numhits,
	'URL' => $url,
	'EMAIL' => $email,
	'EMAIL_CHECKED' => $email_checked,
	'DISABLE_CHECKED' => $disable_checked,
));


//
// Woohoo! All done!
//
$template->pparse('body');




include $root_path.'page_tail.php';




?>

